package com.suixinsanren.design.command.demo01;

public class AirFanOffCommand implements Command {

    private AirFan airFan;

    public AirFanOffCommand(AirFan airFan) {
        this.airFan = airFan;
    }


    @Override
    public void execute() {
        airFan.off();
    }

    @Override
    public void undo() {
        airFan.on();
    }
}
